package com.my.study.design.prototype;

/**
 * @author Carlos
 * @version 1.0
 * @Description TODO
 * @date 2021/7/10 23:19
 **/
public class Client {

    public static void main(String[] args) {
        Sheep sheep = new Sheep("tom", 12, "red");
        System.out.println(sheep);

        // 浅拷贝！！！！！
        Sheep clone1 = (Sheep) sheep.clone();
        sheep.setAge(13);
        System.out.println(clone1);
        System.out.println(sheep);

    }

}
